/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */

import cn.webrx.Color;

/**
 * <p>Project: javase - EnumDemo
 * <p>Powered by webrx On 2021-12-27 17:52:45
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class EnumDemo {
    public static void main(String[] args) {
        Color c = Color.RED;
        switch (c) {
            case RED:
                System.out.println("你选择了红色s");
                break;

            case BLUE:
                break;

            case GREEN:
                break;

            default:
                break;
        }


        for (Color cc : Color.values()) {
            System.out.println(cc);
        }
    }


}


